<div class="form">

    <?php $form = $this->beginWidget('GxActiveForm', array(
        'id' => 'chanage-password-form',
        'enableClientValidation' => true,
        'htmlOptions' => array('class' => 'well'),
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>

    <?php echo $form->errorSummary($model); ?>

    <table class="form-grid">
        <tr>
            <td><?php echo $form->labelEx($model,'old_password'); ?></td>
            <td><?php echo $form->passwordField($model,'old_password',array('class' => 'input-maxlarge')); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->labelEx($model,'new_password'); ?></td>
            <td><?php echo $form->passwordField($model,'new_password',array('class' => 'input-maxlarge')); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->labelEx($model,'repeat_password'); ?></td>
            <td><?php echo $form->passwordField($model,'repeat_password',array('class' => 'input-maxlarge')); ?></td>
        </tr>
    </table>

    <?php    echo GxHtml::submitButton(Yii::t('app', 'Save')); ?>
    <?php $this->endWidget(); ?>
</div><!-- form -->